package com.project.yuepai.dao;

import com.project.yuepai.dto.DynamicDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DynamicMapper {

    List<DynamicDto> findAllDynamics(@Param("nickName") String nickName, @Param("userRole") Integer userRole, @Param("userPhone") String userPhone);

    int deleteDynamic(Integer dynamicId);

    int deleteDynamicInRelation(Integer dynamicId);

}
